import request from '@/utils/request'

// 查询订单收货地址列表
export function listOrderAddress(query) {
  return request({
    url: '/store/orderAddress/list',
    method: 'get',
    params: query
  })
}

// 查询订单收货地址详细
export function getOrderAddress(orderSerial) {
  return request({
    url: '/store/orderAddress/' + orderSerial,
    method: 'get'
  })
}

// 新增订单收货地址
export function addOrderAddress(data) {
  return request({
    url: '/store/orderAddress',
    method: 'post',
    data: data
  })
}

// 修改订单收货地址
export function updateOrderAddress(data) {
  return request({
    url: '/store/orderAddress',
    method: 'put',
    data: data
  })
}

// 删除订单收货地址
export function delOrderAddress(orderSerial) {
  return request({
    url: '/store/orderAddress/' + orderSerial,
    method: 'delete'
  })
}
